ci: Work around GH actions `container:` + git + security bug
authorColin Walters <walters@verbum.org>
Mon, 9 May 2022 18:46:41 +0000 (14:46 -0400)
committerColin Walters <walters@verbum.org>
Mon, 9 May 2022 18:46:41 +0000 (14:46 -0400)
See https://github.com/actions/checkout/issues/760

.github/workflows/docs.yml

index 72fde7ad73ebcbf1e1b06d1b53bdff8e29c42c6b..328ea624fe27c6889e5a27528029cff7d3d8429f 100644 (file)
@@ -21,6 +21,9 @@ jobs:
       - name: Checkout repository
         uses: actions/checkout@v2
 
+      - name: GH actions checkout post
+        run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
+
       # This is taken from ci/travis-install.sh but should probably be
       # refactored.
       - name: Install dependencies